﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ContadorDeHoras.DTO;

namespace ContadorDeHoras.DAL
{
    public class DiaDAL
    {
        public static bool persiste(DiaDTO dia) {
            CommandFactory.fabrica("persiste", dia).execute();
            return true;
        }

        public static DiaDTO recupera(DateTime data) {

            return null;
        }

        public static List<DiaDTO> recuperaMes(DiaDTO dia)
        {
            return (List<DiaDTO>)CommandFactory.fabrica("recuperames", dia).execute();
        }

        public static List<DiaDTO> recuperaRange(DateTime d1, DateTime d2)
        {
            return (List<DiaDTO>)CommandFactory.fabrica("recuperarange", d1, d2).execute();
        }

    }
}
